package VN.EDU.IMIC.DEVELOPER.DOTHANHTUNG.OOP_MVC_LV1.DayOfMonth;

import java.util.Scanner;

public class DayOfMonthView {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int month, year;
		System.out.println("Please enter your month");
		Scanner sc = new Scanner(System.in);
		month = sc.nextInt();
		System.out.println("Please enter your year");
		sc = new Scanner(System.in);
		year = sc.nextInt();
		
		Month objMonth = new Month();
		objMonth.setMonth(month);
		objMonth.setYear(year);
		
		//khoi tao controller
		
		DayOfMonthController objController = new DayOfMonthController(objMonth);
		
		System.out.println("Number of days of " + objMonth.getMonth()+ "/"+objMonth.getYear()+ ": " + objController.DateControllers());
		
	}

}
